<UserControl x:Class="MimeCloud.AssetManagement.Silverlight.MediaLibrary.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Controls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls" 
    >
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"></ColumnDefinition>
            <ColumnDefinition Width="3"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>



        <Grid x:Name="ContentGrid" Grid.Column="2">
            <!--Assets go here -->
        </Grid>

        <ListBox Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="usrOpenAssetList" SelectionChanged="usrOpenAssetList_SelectionChanged">
            <ItemsPanelTemplate>
                <Controls:WrapPanel></Controls:WrapPanel>
            </ItemsPanelTemplate>
            <ListBox.Template>
                <ControlTemplate>
                    <Grid>
                        <ScrollViewer>
                            <ItemsPresenter />
                        </ScrollViewer>
                    </Grid>
                </ControlTemplate>
            </ListBox.Template>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=thumbimg}" Width="50" Height="50" />
                        <StackPanel Orientation="Vertical">
                            <TextBlock x:Name="ItemDisplayName" Text="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=filename}" />
                            <TextBlock x:Name="ItemDisplayContent" Text="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=childdetail}" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <!--<GridSplitter Grid.Column="1" 
                Height="Auto" Width="Auto" HorizontalAlignment="Stretch" 
                VerticalAlignment="Stretch" />-->

    </Grid>
</UserControl>
